export type StorageConfig = {
  bucket: string,
  host: string,
  port: number,
  useSSL: boolean,
  accessKey: string,
  accessSecret: string
}

interface ExtendedStorageConfig extends StorageConfig {
  externalHost: string;
  externalPort: number;
}

export type ObjectStorageType = 'oss' | 'minio';

export interface IStorage {
  type: ObjectStorageType;
  config: StorageConfig;
}

export type IExtendedStorage = {
  type: ObjectStorageType,
  config: ExtendedStorageConfig
}